
<?php //echo $error;?>
<div id="gallery">
    <?php 
        if(isset($warning)){
            echo '
                <hr>
                <center>'.$warning.'</center>
                <hr>
                ';
        }
    ?>
    <?php
    $i=0;
        foreach($images as $img){
            $i++;
    ?>
    <div class="thumb">
        <a href=" <?php  echo $img['url']; ?> ">
        <img src=" <?php echo $img['thumb_url']; ?>" alt="" />
    </a>
        <a href="<?php echo base_url().'admin/admin_con/delete_image/'.($i)?>"><center><img src="<?php echo base_url().'img/b_drop.png'?>"></center></a>
    </div>
    <?php
        }
    ?>
    

 </div>

<div id="upload"> Upload Image 
<?php echo form_open_multipart('admin/admin_con/do_upload');
    
?>

<input type="file" name="userfile" size="20" />

<br /><br />

<input type="submit" value="upload" />
<?php echo form_close()?>
</div>